import request from '@/utils/request'

export const loginApi = (data) => {
  return request({
    url: '/user-service/user/login',
    method: 'POST',
    data
  })
}

// export const getUserInfoApi = (data) => {
//   return request({
//     url: '/vm-service/sku/fileUpload',
//     method: 'POST',
//     data
//   })
// }

export const ShouHuoJiApi = (data) => {
  return request({
    url: '/vm-service/vmType/search',
    method: 'GET',
    data
  })
}

// export const getBussList = () => request({
//   url: '/task-service/task/search'
// })

export const getBussList = (params) => request({
  url: '/task-service/task/search',
  method: 'GET',
  params
})

export const getTaskStatus = () => request({
  url: '/task-service/task/allTaskStatus'
})
